<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-lg-8 col-md-10">
            <!-- 投票结果卡片 -->
            <div class="card shadow-sm border-0 rounded-4 overflow-hidden">
                <!-- 卡片头部 -->
                <div class="card-header bg-primary bg-opacity-10 py-3 border-0">
                    <h1 class="h4 mb-0 text-center text-primary">
                        <i class="bi bi-bar-chart me-2"></i>{{ question.question_text }}
                    </h1>
                </div>
                
                <!-- 卡片内容 -->
                <div class="card-body p-0">
                    <!-- 结果列表 -->
                    <ul class="list-group list-group-flush">
                        {% for choice in question.choice_set.all %}
                        <li class="list-group-item border-0 py-3 px-4">
                            <div class="d-flex justify-content-between align-items-center">
                                <span class="fw-medium">{{ choice.choice_text }}</span>
                                <span class="badge bg-primary bg-opacity-10 text-primary rounded-pill px-3 py-2">
                                    {{ choice.votes }} 票
                                </span>
                            </div>
                        </li>
                        {% endfor %}
                    </ul>
                </div>
                
                <!-- 卡片底部 - 双按钮布局 -->
                <div class="card-footer bg-transparent border-0 py-3">
                    <div class="d-flex justify-content-between">
                        <a href="{% url 'polls:index' %}" class="btn btn-outline-secondary rounded-pill px-4">
                            <i class="bi bi-house-door me-2"></i>返回首页
                        </a>
                        <a href="{% url 'polls:detail' question.id %}" class="btn btn-primary rounded-pill px-4">
                            <i class="bi bi-arrow-repeat me-2"></i>重新投票
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">

<style>
    .rounded-4 {
        border-radius: 16px !important;
    }
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1) !important;
    }
    .list-group-item:hover {
        background-color: rgba(13, 110, 253, 0.05);
    }
    .btn {
        transition: all 0.2s ease;
    }
    .btn:hover {
        transform: translateY(-2px);
    }
</style>